match x:
    case []:
        pass
    case [1]:
        pass
    case [1,]:
        pass
    case [1, 2]:
        pass
    case [1, 2,]:
        pass
    case [1, [[2]]]:
        pass